package admin

import database "hft/Database"

type AccountAudit struct {
	database.Base
	Presenter   string  `json:"presenter"`
	PresentRole string  `json:"presentRole"`
	BelongName  string  `json:"belongName"`
	RegionLink  string  `json:"regionLink"`
	AccountId   int     `json:"accountId,omitempty"`
	Status      int     `json:"status" gorm:"type:tinyint(1);size:1"`
	Result      int     `json:"result" gorm:"type:tinyint(1);size:1"`
	Account     Account `json:"info,omitempty" gorm:"foreignKey:AccountId;references:ID;constraint:OnDelete:SET NULL,OnUpdate:NO ACTION"`
	Advice      string  `json:"advice" gorm:"type:text"`
}

func (AccountAudit) TableName() string {
	return database.TableNameFormat("account_audit")
}
